#!/bin/sh
#create by padavan
WORK_PATH='/etc/storage/idrb'
CONF_PATH='/etc/config'
CONF_FILE="$CONF_PATH/ipshare"
EXEC_BIN="$WORK_PATH"/idrb

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WORK_PATH

create_config()
{   
    mkdir -p $CONF_PATH
    cd $CONF_PATH
    cp -f /etc/storage/idrb/acc ipshare
    chmod +x ipshare
}

start()
{   
        create_config
        sleep 10
        $EXEC_BIN start 2>/dev/null  >/dev/null
}

start
